<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AlertTypeToOpenShopContractTemplateTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_contract_template', function (Blueprint $table) {
            $table->tinyInteger('mode')->default(1)->comment('加盟模式 1-传统模式 2分账模式')->after('isShow');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_contract_template', function (Blueprint $table) {
            $table->dropColumn('mode');
        });
    }
}


